package com.mall.user.domain.model;

public record BrandId(Long id) {
    public BrandId {
        //品牌编号最小值为1
        if (id < 1) {
            throw new IllegalArgumentException("品牌编号最小值为1");
        }
    }

    public static BrandId of(Long id) {
        return new BrandId(id);
    }
}
